package com.neusoft.elmboot.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.neusoft.elmboot.mapper.BusinessMapper;
import com.neusoft.elmboot.po.Business;
import com.neusoft.elmboot.service.BusinessService;

@Service
public class BusinessServiceImpl implements BusinessService {

	@Autowired
	private BusinessMapper businessMapper;

	@Override
	public List<Business> listBusinessByOrderTypeId(Integer orderTypeId) {
		return businessMapper.listBusinessByOrderTypeId(orderTypeId);
	}

	@Override
	public Business getBusinessById(Integer businessId) {
		return businessMapper.getBusinessById(businessId);
	}

	@Override
	public List<Business> listBusinessByname(String bname) {
		return businessMapper.listBusinessByname(bname);
	}
	
	@Override
	public int updateBusinessSale(Business business) {
		return businessMapper.updateBusinessSale(business);
	}
	
	@Override
	public int addBusiness(Business business) {
		// TODO Auto-generated method stub
		return businessMapper.addBusiness(business);
	}

	@Override
	public Business getbusinessbyIdbyPassword(Business business) {
		// TODO Auto-generated method stub
		return businessMapper.getBusinessByIdByPass(business);
	}

	@Override
	public int updateBusiness(Business business) {
		// TODO Auto-generated method stub
		return businessMapper.updateBusiness(business);
	}

	@Override
	public int updateBusinessPassword(Business business) {
		return businessMapper.updateBusinessPassword(business);
	}
	
	@Override
	public List<Business> listBusinessAddressBybusinessId(Integer businessId){
		return businessMapper.listBusinessAddressBybusinessId(businessId);
	}
}